<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<!--検索条件設定テーブルここから-->
<div class="menuclass">
<dl>
<form name="search_form1" id="search_form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="form" value="1">
<input type="hidden" name="page" value="<!--{$arrForm.page.value}-->">
<input type="hidden" name="type" value="<!--{$smarty.post.type}-->">
<dt class="lefting">月度集計</dt>
<dd>
	<span class="red"><!--{$arrErr.search_startyear_m}--></span>
	<span class="red"><!--{$arrErr.search_endyear_m}--></span>		
	<select name="search_startyear_m"  style="<!--{$arrErr.search_startyear_m|sfGetErrorColor}-->">
	<!--{html_options options=$arrYear selected=$arrForm.search_startyear_m.value}-->
	</select>年
	<select name="search_startmonth_m" style="<!--{$arrErr.search_startyear_m|sfGetErrorColor}-->">
	<!--{html_options options=$arrMonth selected=$arrForm.search_startmonth_m.value}-->
	</select>月度 （<!--{if $smarty.const.CLOSE_DAY == 31}-->末<!--{else}--><!--{$smarty.const.CLOSE_DAY}--><!--{/if}-->日締め）
	<input type="submit" name="subm" value="月度で集計する" />
</dd>
</form>

<form name="search_form2" id="search_form2" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="form" value="2">
<input type="hidden" name="page" value="<!--{$arrForm.page.value}-->">
<input type="hidden" name="type" value="<!--{$smarty.post.type}-->">
<dt class="lefting">期間集計</dt>
<dd>
									<span class="red"><!--{$arrErr.search_startyear}--></span>
									<span class="red"><!--{$arrErr.search_endyear}--></span>		
									<select name="search_startyear"  style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
									<option value="">----</option>
									<!--{html_options options=$arrYear selected=$arrForm.search_startyear.value}-->
									</select>年
									<select name="search_startmonth" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
									<option value="">--</option>
									<!--{html_options options=$arrMonth selected=$arrForm.search_startmonth.value}-->
									</select>月
									<select name="search_startday" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
									<option value="">--</option>
									<!--{html_options options=$arrDay selected=$arrForm.search_startday.value}-->
									</select>日〜
									<select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
									<option value="">----</option>
									<!--{html_options options=$arrYear selected=$arrForm.search_endyear.value}-->
									</select>年
									<select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
									<option value="">--</option>
									<!--{html_options options=$arrMonth selected=$arrForm.search_endmonth.value}-->
									</select>月
									<select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
									<option value="">--</option>
									<!--{html_options options=$arrDay selected=$arrForm.search_endday.value}-->
									</select>日
									　<input type="submit" name="subm" value="期間で集計する" />
</dd>
</form>
</dl>
</div>
<!--検索条件設定テーブルここまで-->





<!--{if count($arrResults) > 0}-->
<!--★★検索結果一覧★★-->
<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="type" value="<!--{$arrForm.type.value}-->">
<input type="hidden" name="page" value="<!--{$arrForm.page.value}-->">
<!--{foreach key=key item=item from=$arrHidden}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
<!--{/foreach}-->	

<h3>グラフ表示</h3>
<!--{include file=$tpl_graphsubtitle}-->


<div class="btn_box">
<input type="button" name="subm" value="検索結果をCSVダウンロード" onclick="fnModeSubmit('csv','','');" />
	<!--{* PDF機能は次期開発で追加予定
	<input type="button" name="subm" value="検索結果をPDFダウンロード" onclick="fnModeSubmit('pdf','','');" />
	*}-->
</div>


<!--{* グラフ表示 *}-->
<!--{if $install_GD}-->
<p class="place-center">
<!--{* <img src="<!--{$tpl_image}-->?<!--{$cashtime}-->" alt="グラフ"> *}-->
<img src="<!--{$smarty.server.PHP_SELF|escape}-->?draw_image=true&type=<!--{$smarty.post.type}-->&mode=search&page=<!--{$smarty.post.page}-->&search_startyear_m=<!--{$smarty.post.search_startyear_m}-->&search_startmonth_m=<!--{$smarty.post.search_startmonth_m}-->&search_startyear=<!--{$smarty.post.search_startyear}-->&search_startmonth=<!--{$smarty.post.search_startmonth}-->&search_startday=<!--{$smarty.post.search_startday}-->&search_endyear=<!--{$smarty.post.search_endyear}-->&search_endmonth=<!--{$smarty.post.search_endmonth}-->&search_endday=<!--{$smarty.post.search_endday}-->" alt="グラフ">
</p>
<!--{/if}-->
<!--{* グラフ表示 *}-->


<!--▼検索結果テーブルここから-->
<!--{include file=$tpl_page_type}-->
<!--▲検索結果テーブルここまで-->
</form>




<!--{else}-->
	<!--{if $smarty.post.mode == 'search'}-->
	<h3>売上表示</h3>
	<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
	<input type="hidden" name="mode" value="search">
	<input type="hidden" name="type" value="<!--{$arrForm.type.value}-->">
	<input type="hidden" name="page" value="<!--{$arrForm.page.value}-->">
	<!--{foreach key=key item=item from=$arrHidden}-->
	<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
	<!--{/foreach}-->	
	<div class="menuclass">
	<!--{* タイトル表示 *}-->
	<p class="place-center">
	<!--{include file=$tpl_graphsubtitle}-->
	</p>
	
	<div class="nodata">
	<p>該当するデータはありません。</p>
	</div>
	<!--検索結果表示テーブル-->
	</div>
	</form>
	<!--{/if}-->
<!--{/if}-->
</div>
</div>
